# Contributor: nu <llnu@protonmail.ch>
# Maintainer: nu <llnu@protonmail.ch>
pkgname=vym
pkgver=2.9.26
pkgrel=0
pkgdesc="View Your Mind (VYM) is a cross-platform concept mapping software"
url="https://www.insilmaril.de/vym/"
arch="all"
license="GPL-2.0-only"
makedepends="
	cmake
	qt5-qtbase-dev
	qt5-qtscript-dev
	qt5-qtsvg-dev
	qt5-qttools-dev
	samurai
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/insilmaril/vym/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_DATAROOTDIR=share/vym
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
	mv "$pkgdir"/usr/share/vym/doc "$pkgdir"/usr/share/doc
	mv "$pkgdir"/usr/share/vym/man "$pkgdir"/usr/share/man
}

sha512sums="
400d328877b18020a614af6784aa4c355c80d38366e606877d82f67d403ffef81097a32572ea46546c55bddae53bba78fce7d8313b07ffc346dc5ef7073cbbe1  vym-2.9.26.tar.gz
"
